#-------------------------------------------------
#
# Project created by QtCreator 2015-07-27T21:38:42
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = MyPlayer
TEMPLATE = app

UI_DIR  = tmp
MOC_DIR = tmp
RCC_DIR = tmp
DESTDIR = bin

QMAKE_CXXFLAGS += -std=c++11

SOURCES += main.cpp\
	widget.cpp \
	playerControl.cpp \
	mediaList.cpp \
	cPlayer.cpp \
	cStream.cpp \
	mediaStreamIO.cpp \
	mediaDemuxing.cpp \
	error.cpp \
	ioQueue.cpp \
	mediaDecode.cpp \
        decodeBase.cpp \
        decodeVideo.cpp

HEADERS  += widget.h \
	playerControl.h \
	mediaList.h \
	cPlayer.h \
	cStream.h \
	mediaStreamIO.h \
	mediaDemuxing.h \
	error.h \
	global.h \
	ioQueue.h \
	mediaDecode.h \
        decodeBase.h \
        decodeVideo.h

FORMS    += widget.ui \
	playerControl.ui \
	mediaList.ui

#########################################################################
INCLUDEPATH += $$PWD/../lib/Libs/ffmpeg/include
DEPENDPATH  += $$PWD/../lib/Libs/ffmpeg/include
INCLUDEPATH += $$PWD/../lib/Libs/SDL/include/
DEPENDPATH  += $$PWD/../lib/Libs/SDL/include/

LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lavcodec
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lavdevice
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lavfilter
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lavformat
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lavutil
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lpostproc
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lswresample
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lswscale
LIBS += -L$$PWD/../lib/Libs/ffmpeg/lib/ -lavcodec
LIBS += -L$$PWD/../lib/Libs/SDL/lib/x86/ -lSDL2
LIBS += -L$$PWD/../lib/Libs/SDL/lib/x86/ -lSDL2main
LIBS += -L$$PWD/../lib/Libs/SDL/lib/x86/ -lSDL2test

LIBS += -lws2_32
LIBS += -lOle32

